package com.augurit.gzcgwsp.sendNotice.service;

import java.util.List;

import org.springside.modules.orm.Page;

import com.augurit.gzcgwsp.sendNotice.entity.YwPublicOpinions;

public interface IYwPublicOpinionsService {


	/**
	 * 保存
	 * @param ywPublicOpinions 
	 * @return true或者false
	 */
	public boolean saveOpinions(YwPublicOpinions ywPublicOpinions);
	
	/**
	 * 通过受理号获取
	 * @param acceptNo 受理号
	 * @return List<YwPublicOpinions>
	 */
	public Page<YwPublicOpinions> getByAcceptNo(Page<YwPublicOpinions> publicOpinionsPage,String acceptNo);
	
	/**
	 * 获取总意见数量
	 * @param acceptNo
	 * @return
	 */
	public long getTotalOpinionsByAcceptNo(String acceptNo);
	
	/**
	 * 获取反对的意见数量
	 * @param acceptNo
	 * @return
	 */
	public long getFdOpinionsTotalByAcceptNo(String acceptNo);
	
	/**
	 * 通过受理号获取反对意见
	 * @param acceptNo 受理号
	 * @return List<YwPublicOpinions>
	 */
	public Page<YwPublicOpinions> getFdOpinionsByAcceptNo(Page<YwPublicOpinions> publicOpinionsPage,String acceptNo);
}
